window.onload=function (ev) {
    clock();
}

//关闭公告弹窗
function closeAnnouncement() {
    document.getElementById("divSeeAnnouncement").setAttribute("style", " display: none;");

}

//打开公告弹窗
function seeAnnounce(publisher, titile, notice_content, notice_date) {
    document.getElementById("divSeeAnnouncementTitle").innerText = titile;
    document.getElementById("divSeeAnnouncementContent").innerText = notice_content;
    document.getElementById("divSeeAnnouncementFooterPublisher").innerText = "发布者：" + publisher;
    document.getElementById("divSeeAnnouncementFooterNoticeDate").innerText = "发布日期：" + notice_date;

    document.getElementById("divSeeAnnouncement").setAttribute("style", " display: block;");

}

function clock() {
    var d = new Date();

    var h = d.getHours();

    var m = d.getMinutes();

    var s = d.getSeconds();

    var hms = h + ":" + m + ":" + s;

    document.getElementById("headClock").innerText ="时间："+ hms;
    setTimeout("clock()", 1000);
}